#!/bin/bash
read -p "系统名称：" name
name_lower=$(echo "$name" | tr '[:upper:]' '[:lower:]')

if  [ $name_lower = linux ] ; then
   echo "红帽"
elif [ $name_lower = windows ] ; then 
   echo "微软"
elif [ $name_lower = macos ] ; then
   echo "苹果"
else 
   echo "其他"
fi
